<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class PlatformMsg
 * @package App\Models
 * @version January 12, 2018, 10:44 am CST
 *
 * @property int park_code
 * @property int type
 * @property string message
 * @property string|\Carbon\Carbon start_time
 * @property string|\Carbon\Carbon end_time
 * @property int status
 * @property int mode
 */
class PlatformMsg extends Model
{
    use SoftDeletes;

    public $table = 'platform_msgs';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'park_code',
        'type',
        'message',
        'period',
        'start_time',
        'end_time',
        'status',
        'mode'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'message' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'park_code' => 'required',
        'message' => 'required'
    ];

    
}
